﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace ServiceA.Controllers
{
    /// <summary>
    ///  常规鉴权，需要验证身份后可以访问
    /// </summary>
    [Authorize("ApiScope")]
    [ApiController]
    [Route("/[controller]")]
    public class VipController : Controller
    {
        [HttpGet]
        [Route("Index")]
        public IActionResult Index()
        {
            return Ok("ServiceA-Vip");
        }
    }
}
